package com.parkingspace.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "rid", type = IdType.ASSIGN_ID)
    private Long rid;

    /**
     * 角色名称
     */
    private String rname;

    /**
     * 软删除(0:未删除,1:已删除)
     */
    @TableLogic
    @TableField(select = false)
    private Integer softdel;


}
